package com.lhd.qd.module.system.generator.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@ApiModel(value = "代码生成参数")
@Data
public class GeneratorDTO {

    @NotBlank(message = "表名不能为空")
    @ApiModelProperty(value = "表名", required = true)
    private String tableName;
    @NotBlank(message = "表前缀不能为空")
    @ApiModelProperty(value = "表前缀", required = true)
    private String tablePrefix;

    @NotBlank(message = "项目路径不能为空")
    @ApiModelProperty(value = "项目路径", required = true)
    private String outputDir;

    @NotBlank(message = "模块名称不能为空")
    @ApiModelProperty(value = "模块名称", required = true)
    private String moduleName;
    @ApiModelProperty(value = "实体的包路径", notes = "如果不设置，将使用表名和表前缀推算")
    private String entityPackage;

    @ApiModelProperty(value = "是否为逻辑删除", notes = "默认值true")
    private Boolean isLogicDelete;
}
